package com.kyivmohyla.kma2.client.events.manager;

import com.google.gwt.event.shared.GwtEvent;

import java.util.Date;

public class ManagerCloseOrderEvent extends GwtEvent<ManagerCloseOrderEventHandler> {
    public static Type<ManagerCloseOrderEventHandler> TYPE = new Type<ManagerCloseOrderEventHandler>();
    private Date date;

    public ManagerCloseOrderEvent(Date date) {
        this.date = date;
    }

    public Date getDate() {
        return date;
    }

    public Type<ManagerCloseOrderEventHandler> getAssociatedType() {
        return TYPE;
    }

    protected void dispatch(ManagerCloseOrderEventHandler handler) {
        handler.onManagerCloseOrder(this);
    }
}
